<!DOCTYPE html>
<html th:replace="~{layouts/layout :: layout(~{::title}, ~{::#main_content})}" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>rsa加解密</title>
</head>
<body>
<div id="main_content">
    <!-- content start -->
    <div class="container">
        <div class="row">
            <div class="col-md-12">

                <div class="alert alert-danger" role="alert">
                    <p>RSA私人加解密处理</p>
                </div>

                <ul role="tablist" class="nav nav-tabs" id="myTab">

                    <li role="presentation" class="active">
                        <a aria-expanded="true" aria-controls="help"  data-toggle="tab" role="tab" id="help-tab"  href="#help">加密</a>
                    </li>

                    <li  role="presentation">
                        <a aria-controls="db"  data-toggle="tab" role="tab" id="db-tab" href="#db">解密</a>
                    </li>
                </ul>
                <div class="tab-content" id="myTabContent">
                    <div aria-labelledby="help-tab" id="help" class="tab-pane fade in active" role="tabpanel">
                        <div>
                            <form target="_blank" action="/rsa/enstr" method="POST">
                                <input type="submit" value="加密提交" name="submit"  />
                                <br />
                                <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />`
                                <textarea style="width: 90%;height:220px;" id="code-area" name="content"></textarea>
                            </form>

                        </div>
                    </div>

                    <div aria-labelledby="db-tab" id="db" class="tab-pane fade in" role="tabpanel">
                        <div>
                            <form target="_blank" action="/rsa/destr" method="post">
                                <input type="submit" value="解密提交" name="submit"  />
                                <br />
                                <input type="hidden" th:name="${_csrf.parameterName}" th:value="${_csrf.token}" />`
                                <textarea style="width: 90%;height:220px;" name="content"></textarea>
                            </form>
                        </div>
                    </div>
                </div>
                <!-- end tab-content  -->
            </div><!-- end col12 -->
        </div><!-- end row -->
    </div>
    <!-- content end -->

</div>
</body>
</html>